package com.itheima.Thread.setDaemon守护线程.死循环;

public class Test {
    public static void main(String[] args) {
        Thread t1=new Thread(()->{
            while (true){
                System.out.println("HelloWorld");
            }
        });
        t1.setDaemon(true);
        t1.start();

        for (int i = 0; i < 10; i++) {
            System.out.println("JavaSE");
        }
    }
}
